﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Xml.Linq;

namespace farming.Admins.Dto
{
    /// <summary>
    /// 返回结果
    /// </summary>
    public enum LoginState
    {
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 200,
        /// <summary>
        /// 用户名未找到
        /// </summary>
        [Description("用户名未找到")]
        NotFoundUserName = 404,
        /// <summary>
        /// 验证码不正确
        /// </summary>
        [Description("验证码不正确")]
        CaptchaCodeError = 407,
        /// <summary>
        /// 密码错误
        /// </summary>
        [Description("密码错误")]
        PasswordWrong = 405,
        /// <summary>
        /// 用户已锁定
        /// </summary>
        [Description("用户已锁定")]
        Locked = 406,
        /// <summary>
        /// 失败
        /// </summary>
        [Description("失败")]
        Failed = 500
    }
    public class LoginResultDto<TData> : ResultDto<TData>
    {
        public new LoginState Code { get; set; }
    }
}
